package com.qa.service;

import com.github.pagehelper.PageInfo;
import com.qa.common.ServerResponse;
import com.qa.pojo.User;

import javax.servlet.http.HttpServletRequest;

public interface IUserService {
    PageInfo<User> getByEmail(String userEmail, Integer pageNum, Integer pageSize);

    User getById(Integer userId);

    ServerResponse updateUser(User user);

    ServerResponse deleteById(Integer userId);

    ServerResponse register(User user);

    ServerResponse login(User user, HttpServletRequest request);

    int getCount(String beginTime, String endTime);
}
